import cv2 as cv
import numpy as np
from matplotlib import pyplot as plt

img = cv.imread('../test_datas/girl.png')
# 双边滤波
blur = cv.bilateralFilter(img,21,20,20)

median = cv.medianBlur(blur,5)

GBlur = cv.GaussianBlur(blur,(5,5),0)

h1 = np.hstack((img,blur))
h2 = np.hstack((median,GBlur))
res = np.vstack((h1,h2))
cv.imshow('res',res)
cv.waitKey(0)
cv.destroyAllWindows()